<!DOCTYPE html>
<html>
<head>
	<title></title>
	#parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
		</div>
		<table id="jqGrid"></table>
		<div id="jqGridPager"></div>
	</div>

	<div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
			<div class="form-group">
				<div class="col-sm-2 control-label">英文名称</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="dept.platform" placeholder="部门名称"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">部门名称</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="dept.name" placeholder="部门名称"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">上级部门</div>
				<div class="col-sm-10">
					<!--<input type="text" class="form-control" style="cursor:pointer;" v-model="dept.parentName" @click="deptTree" readonly="readonly" placeholder="一级部门"/>-->
					<input type="text" class="form-control" style="cursor:pointer;" v-model="dept.parentName"  readonly="readonly" placeholder="一级部门"/>
				</div>
			</div>

			<div class="form-group">
				<div class="col-sm-2 control-label">类别</div>
				<label class="radio-inline">
					<input type="radio" name="status" value="1" v-model="dept.type"/> 资金
				</label>
				<label class="radio-inline">
					<input type="radio" name="status" value="2" v-model="dept.type"/> 资产
				</label>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">排序号</div>
				<div class="col-sm-10">
					<input type="number" class="form-control" v-model="dept.orderNum" placeholder="排序号"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<!-- 选择部门 -->
<div id="deptLayer" style="display: none;padding:10px;">
	<ul id="deptTree" class="ztree"></ul>
</div>

<script src="${rc.contextPath}/js/sys/dept.js?_${date.systemTime}"></script>
</body>
</html>